
<html>
	<head>
		<title></title>
	</head>
	<body>
		<a href="add">添加新闻</a>
		<div id="">
			
		
		<h2>新闻列表</h2>
		<table>
			<tr><td>id</td>
				<td>标题</td>
				<td>内容</td>
				<td>创建时间</td>
			</tr>
		<?php foreach($news as $n){
				echo '<tr>';
				echo '<td>'.$n['id'].'</td>';
				echo '<td><a href="'.$n['slug'].'">'.$n['title'].'</a></td>';
				echo '<td>'.$n['text'].'</td>';
				echo '<td>'.$n['add_time'].'</td>';
				
				echo '</tr>';
		}
		?>
		</table>
		</div>
	</body>
</html>

